<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Life Runner:  File sorgente mainwindow.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="Batteri.jpg"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Life Runner
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Il Gioco della Vita</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generato da Doxygen 1.8.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Cerca');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Pagina&#160;Principale</span></a></li>
      <li><a href="annotated.html"><span>Classi</span></a></li>
      <li class="current"><a href="files.html"><span>File</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Cerca" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Elenco&#160;dei&#160;file</span></a></li>
      <li><a href="globals.html"><span>Elementi&#160;dei&#160;file</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tutto</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classi</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>File</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funzioni</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variabili</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Tipi enumerati (enum)</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Valori del tipo enumerato</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Pagine</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">mainwindow.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="mainwindow_8h.html">Vai alla documentazione di questo file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef MAINWINDOW_H</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define MAINWINDOW_H</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="pilamatrici_8h.html">pilamatrici.h</a>&quot;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="coltura_8h.html">coltura.h</a>&quot;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="closingalert_8h.html">closingalert.h</a>&quot;</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="about_8h.html">about.h</a>&quot;</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &lt;QtGui&gt;</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="keyword">class </span><a class="code" href="classColtura.html" title="The Coltura class.">Coltura</a>;</div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="code" href="classMainWindow.html">   56</a></span>&#160;<span class="keyword">class </span><a class="code" href="classMainWindow.html" title="The MainWindow class.">MainWindow</a> : <span class="keyword">public</span> QMainWindow</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;{</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    Q_OBJECT</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <a class="code" href="classMainWindow.html#a4afb0369775943e9cf891902609cb2f2" title="Costruttore della classe MainWindow.">MainWindow</a>(<span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, QWidget *parent = 0);</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <a class="code" href="classMainWindow.html#ae98d00a93bc118200eeef9f9bba1dba7" title="Decostruttore.">~MainWindow</a>();</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classMainWindow.html#ae9a24152987af97d19e1af8ea6bd064e" title="Funzione chiamata ogni volta che si genera un evento di chiusura.">closeEvent</a>(QCloseEvent *<a class="code" href="classMainWindow.html#ae9a24152987af97d19e1af8ea6bd064e" title="Funzione chiamata ogni volta che si genera un evento di chiusura.">closeEvent</a>);</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="keyword">private</span> slots:</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classMainWindow.html#a3b221eb47e027983c23c68cb8dc4b9a5" title="Gestisce il bottone playButton.">play</a>(<span class="keywordtype">bool</span> toggled);</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classMainWindow.html#a36838285112f056c6e8135573918f224" title="Crea una nuova partita, eliminando l&#39;attuale.">newGame</a>();</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classMainWindow.html#a3ba1a371fb10e731ae0926ae85efeb4f" title="Salva la coltura attuale su un file .runner.">save</a>();</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classMainWindow.html#ac03d41a0c3906055917074addf64403b" title="Gestisce la chiusura del programma.">closing</a>();</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classMainWindow.html#a06bcc3ac679ebab877652fc0d69744ea" title="Mostra informazioni sul programma.">openAbout</a>();</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="keyword">public</span> slots:</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classMainWindow.html#addeebf60a989e926528108f71a794495" title="Carica una coltura da un file .runner.">load</a>();</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00119"></a><span class="lineno"><a class="code" href="classMainWindow.html#ad73ebb792869f2da3d350602210aa1fc">  119</a></span>&#160;    <a class="code" href="classClosingAlert.html" title="The ClosingAlert class.">ClosingAlert</a> * <a class="code" href="classMainWindow.html#ad73ebb792869f2da3d350602210aa1fc">closingalert</a>;</div>
<div class="line"><a name="l00120"></a><span class="lineno"><a class="code" href="classMainWindow.html#a8265ed0aa7489e3650921cd7e66c7667">  120</a></span>&#160;    <a class="code" href="classAbout.html" title="The About class.">About</a> * <a class="code" href="classMainWindow.html#a8265ed0aa7489e3650921cd7e66c7667">about</a>;</div>
<div class="line"><a name="l00121"></a><span class="lineno"><a class="code" href="classMainWindow.html#ad33b290f10b47709d0fa21226fc568af">  121</a></span>&#160;    QSlider * <a class="code" href="classMainWindow.html#ad33b290f10b47709d0fa21226fc568af">slider</a>;</div>
<div class="line"><a name="l00122"></a><span class="lineno"><a class="code" href="classMainWindow.html#af11121b47aedf272a8eea841db2ea125">  122</a></span>&#160;    <a class="code" href="classColtura.html" title="The Coltura class.">Coltura</a> * <a class="code" href="classMainWindow.html#af11121b47aedf272a8eea841db2ea125">coltura</a>;</div>
<div class="line"><a name="l00123"></a><span class="lineno"><a class="code" href="classMainWindow.html#aab7e734292c03ee0b8a02d3a8f826630">  123</a></span>&#160;    QMenu * <a class="code" href="classMainWindow.html#aab7e734292c03ee0b8a02d3a8f826630">file</a>;</div>
<div class="line"><a name="l00124"></a><span class="lineno"><a class="code" href="classMainWindow.html#a54bc5c9fed16e60aac21c823a05d2dea">  124</a></span>&#160;    QMenu * <a class="code" href="classMainWindow.html#a54bc5c9fed16e60aac21c823a05d2dea">help</a>;</div>
<div class="line"><a name="l00125"></a><span class="lineno"><a class="code" href="classMainWindow.html#ad4707b7a9cd5e11a5931751a4ce19370">  125</a></span>&#160;    QPushButton * <a class="code" href="classMainWindow.html#ad4707b7a9cd5e11a5931751a4ce19370">stepByStep</a>;</div>
<div class="line"><a name="l00126"></a><span class="lineno"><a class="code" href="classMainWindow.html#a388bc60efd89e1e8e82bef7b305f9902">  126</a></span>&#160;    QPushButton * <a class="code" href="classMainWindow.html#a388bc60efd89e1e8e82bef7b305f9902">playButton</a>;</div>
<div class="line"><a name="l00127"></a><span class="lineno"><a class="code" href="classMainWindow.html#a82d81e78c9854ceaedf5f292431719b4">  127</a></span>&#160;    QWidget * <a class="code" href="classMainWindow.html#a82d81e78c9854ceaedf5f292431719b4">central</a>;</div>
<div class="line"><a name="l00128"></a><span class="lineno"><a class="code" href="classMainWindow.html#afa7c1d62c4d44dd06e1a28c7cfa46cd2">  128</a></span>&#160;    QHBoxLayout * <a class="code" href="classMainWindow.html#afa7c1d62c4d44dd06e1a28c7cfa46cd2">buttonLayout</a>;</div>
<div class="line"><a name="l00129"></a><span class="lineno"><a class="code" href="classMainWindow.html#a80f08e92412c47b1479adaa2cdaf71fa">  129</a></span>&#160;    QVBoxLayout * <a class="code" href="classMainWindow.html#a80f08e92412c47b1479adaa2cdaf71fa">layout</a>;</div>
<div class="line"><a name="l00130"></a><span class="lineno"><a class="code" href="classMainWindow.html#af7e9e7e3a7c147623549315c2e6dc62a">  130</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classMainWindow.html#a45c37e3589f8d00439d18e4f7bf395ea">dx</a>,<a class="code" href="classMainWindow.html#af7e9e7e3a7c147623549315c2e6dc62a">dy</a>;</div>
<div class="line"><a name="l00131"></a><span class="lineno"><a class="code" href="classMainWindow.html#ab8e98c40259a17abfd01f27da2eef860">  131</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classMainWindow.html#ab8e98c40259a17abfd01f27da2eef860">playing</a>;</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;};</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;<span class="preprocessor">#endif // MAINWINDOW_H</span></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generato Ven 16 Nov 2012 15:59:35 per Life Runner da &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.2
</small></address>
</body>
</html>
